#ifndef _CALCULATE_H_
#define _CALCULATE_H_
/*
 * Design by  free.wang <freefis@gmail.com>
 * Licence unser BSD  lisence
 * Complete on May 30 21:30 , 2009 
 *
 * Environment:
 *     GCC 4.3.2
 *     Ubuntu / Linux i386
 *     Mac OS X / FreeBSD 4.x
 */

/*
 *  Main code will call  
 * 	  all_cost( double prodset[6], double workers[6], double extras[6] )
 * to calculate the Result.
*/





double _cost_by_make( double prod, double worker, double extra);

/* 库存及存货成本 */
double _more_or_less( double stdprod, double prod);

/* 培训及解聘成本 */
double _fire_or_train( double workers[6]);

/* 每月成本 */
double _all_month_cost( double stdprod, double prod, double worker, double extra);



/* 最终成本  */
double all_cost( double seed[3][6] );
#endif
